package com.api.oa.model.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class YQUser {

    private Long userId;// bigint DEFAULT NULL COMMENT '主键',
    private String phone;// varchar(255) DEFAULT NULL COMMENT '电话',
    private String insCode;// varchar(255) DEFAULT NULL COMMENT '机构编码',
    private String idCard;// varchar(18) DEFAULT NULL COMMENT '身份证号',
    private String uname;// varchar(255) DEFAULT NULL COMMENT '用户名',
    private String passwd;// varchar(255) DEFAULT NULL COMMENT '密码',
    private Integer status;// int DEFAULT NULL COMMENT '0 正常 1禁用',
    private Integer userType;// int DEFAULT NULL COMMENT '用户类型6 机构 0 医生 1 护士 2 护工 3 患者 4 机构 5 机构测评 6 政府 7政府测评 100 admin',
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;// datetime DEFAULT NULL COMMENT '创建时间'
    private  String belongInsCode;
    private Double score; // 积分
    private String emUuid; //环信ID


    @Override
    public String toString() {
        return "YQUser{" +
                "userId=" + userId +
                ", phone='" + phone + '\'' +
                ", insCode='" + insCode + '\'' +
                ", idCard='" + idCard + '\'' +
                ", uname='" + uname + '\'' +
                ", passwd='" + passwd + '\'' +
                ", status=" + status +
                ", userType=" + userType +
                ", createdAt=" + createdAt +
                '}';
    }


}
